/*================================================================
*   Copyright (C) 2017 LiuYao. All rights reserved.
*   
*   Filename : add_factory.h
*   Author : LiuYao
*   Date : 2017-12-27
*   Description : 
*
================================================================*/
#ifndef _ADD_FACTORY_H
#define _ADD_FACTORY_H

#include "factory.h"
#include "../graph/ops/add_op.h"

class AddFactory : public Factory {
    private:
        Node * lhs_;
        Node * rhs_;

        Node* hook() { return new Add(lhs_, rhs_); }

    public:
        AddFactory(Node * lhs, Node * rhs) : lhs_(lhs), rhs_(rhs) {}
};

#endif
